import request from '@/utils/request'
export function getDateType() {
  return request({
    url: '/common/type/gettype',
    method: 'get',
  })
}
export function getRoles() {
  return request({
    url: '/system/role/getRoles',
    method: 'get',
  })
}
// 获取列表
export function getDataList(params) {
  return request({
    url: '/exclude/plan/list',
    method: 'get',
    params,
  })
}
export function addData(data) {
  return request({
    url: '/exclude/plan',
    method: 'post',
    data,
  })
}
export function updateData(data) {
  return request({
    url: '/exclude/plan',
    method: 'put',
    data,
  })
}
export function deletedData(ids) {
  return request({
    url: '/exclude/plan/' + ids,
    method: 'delete',
  })
}
export function configData(data) {
  return request({
    url: '/exclude/plan/editConfig',
    method: 'put',
    data,
  })
}